package com.jack.leetcode.eachproblem_2020;

/**
 * Created by zhang_j on 2020/11/12
 */
public class 汉明距离 {

    public int hammingDistance(int x, int y) {
        return Integer.bitCount(x ^ y);
    }
}
